import _axios from "@/plugins/axios";

let baseUrlPrefix = "/engine/config/fetcher"

export const addFetcher = (fetcherConfig) => {
  return _axios.post(baseUrlPrefix + '/add', fetcherConfig)
}

export const fetchFetcherConfig = (currentPage, pageSize) => {
  return _axios.get(baseUrlPrefix + '/list', {
    "params": {
      currentPage: currentPage,
      pageSize: pageSize
    }
  })
}
